package com.example.exceldemo.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.Data;

/**
 * @Description
 * @Author xiaohuang
 * @Date 2024/9/10
 */
@Data
@HeadRowHeight(30)  //表头行高
@ContentRowHeight(15)  //内容行高
@ColumnWidth(18)  //列宽
public class PersonHead {
    @ExcelProperty({"程序员个人信息","序号"})
    private Integer line;

    @ExcelProperty({"程序员个人信息","姓名"})
    private String name;

    @ExcelProperty({"程序员个人信息","年龄"})
    private Integer age;

    @ExcelProperty({"程序员个人信息","工作"})
    private String job;

    @ExcelProperty({"程序员个人信息","工龄"})
    private Integer workAge;

}
